package com.ai.service.made.impl;

import com.ai.entity.network.AgToDsSysMessage;
import com.ai.mapper.plc.AgToDsMapper;
import com.ai.service.made.IAGSignalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date;

@Service
public class IAGSignalServiceImpl implements IAGSignalService {
    @Resource
    private AgToDsMapper agToDsMapper;
    @Override
    public void receiveSignal(AgToDsSysMessage message) {
        message.setCreateTime(LocalDateTime.now());
        agToDsMapper.save(message);
    }
}
